﻿using HuaWei;
using HuaWei.CommClass;
using HuaWei.Common;
using HuaWei.Windows.Forms;
using System;
using System.IO;

internal static class Class26
{
    public static bool smethod(string _str)
    {
        if (File.Exists(_str))
        {
            try
            {
                string filename = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "System.ini");
                GParams._JGLX = (JGLX) Convert.ToInt16(IniFile.ReadIniFile(filename, "SYS", "JGLX", false));
                if (GParams._JGLX.Equals(3))
                {
                    GParams.LoginId = "qidaoresources888888";
                }
                else
                {
                    GParams.LoginId = IniFile.ReadIniFile(filename, "SYS", "JGID", false);
                }
                return true;
            }
            catch (Exception exception)
            {
                Log.Write(exception.Message);
                MsgBox.ShowMsg("当前用户未注册，请联系供应商获取注册码！");
            }
        }
        MsgBox.ShowMsg("客户端未注册，请联系供应商获取注册文件！");
        return false;
    }
}

